export const routes = [
    {
        path:'home',
        name:'home',
        alias:'/main',
        component:() => import('../views/Main/Home.vue')
    },
    {
        path:"user",
        name:'user',
        meta:{title:'账户管理'},
        redirect:'/main/user/adminlist',
        component:() => import('../views/User/User.vue'),
        children:[
            {
                path:'adminlist',
                meta:{title:'管理员列表'},
                component:() => import('../views/User/AdminList.vue')
            },
            {
                path:'userlist',
                meta:{title:'用户列表'},
                component:() => import('../views/User/UserList.vue')
            }
        ]
    },
    {
        path:'product',
        name:'product',
        meta:{title:'产品管理'},
        redirect:'/main/product/list',
        component:() => import('../views/Product/Product.vue'),
        children:[
            {
                path:'list',
                meta:{title:'产品列表'},
                component:() => import('../views/Product/productList.vue')
            },
            {
                path:'search',
                meta:{title:'筛选列表'},
                component:() => import('../views/Product/productSearch.vue')
            }
        ]
    },
    {
        path:'banner',
        name:'banner',
        meta:{title:'轮播图管理'},
        redirect:'/main/banner/bannerhome',
        component:() => import('../views/banner/banner.vue'),
        children:[
            {
                path:'bannerhome',
                meta:{title:'轮播图列表'},
                component:() => import('../views/banner/bannerHome.vue')
            }
        ]
    },
    {
        path:'editor',
        meta:{title:'富文本编辑器'},
        redirect:'/main/editor/tinymce',
        component:() => import('../views/Editor/Editor.vue'),
        children:[
            {
                path:'tinymce',
                meta:{title:'TinyMCE'},
                component:() => import('../views/Editor/Tinymce.vue')
            }
        ]
    },
    {
        path:'echarts',
        meta:{title:'数据可视化'},
        redirect:'/main/echarts',
        component:() => import('../views/Echarts/Echarts.vue'),
        children:[
            {
                path:'myecharts',
                meta:{title:'Echarts'},
                component:() => import('../views/Echarts/MyEcharts.vue')
            },
        ]
    }
]